package cn.webjt.Basic_Struts2_Ant_Demo.Action ;

import java.util.LinkedHashMap ;

import com.opensymphony.xwork2.ActionSupport ;

public class Action_PersonInformation extends ActionSupport
{

	private static final long					serialVersionUID	= 7641842761903953156L ;
	private String								firstName ;
	private String								lastName ;
	private String								sport ;
	private String								gender ;
	private String								residency ;
	private String								over21 ;
	private String								carModels ;
	private LinkedHashMap < String , String >	Sports ;

	// private HashMap < String , String > Genders ;

	/*
	 * (non-Javadoc)
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	@ Override
	public String execute ( ) throws Exception
	{
		// TODO Auto-generated method stub
		Sports = new LinkedHashMap < String , String > ( ) ;
		Sports.put ( "football" , "football" ) ;
		Sports.put ( "baseball" , "baseball" ) ;
		Sports.put ( "basketball" , "basketball" ) ;
		System.out.println ( Sports.get ( "football" )) ;
		return "Action_Register_OK" ;
	}


	/**
	 * @return the sports
	 */
	public LinkedHashMap < String , String > getSports ( )
	{
		return Sports ;
	}


	/**
	 * @param sports the sports to set
	 */
	public void setSports ( LinkedHashMap < String , String > sports )
	{
		Sports = sports ;
	}


	/**
	 * @return the firstName
	 */
	public String getFirstName ( )
	{
		return firstName ;
	}

	/**
	 * @param firstName
	 *            the firstName to set
	 */
	public void setFirstName ( String firstName )
	{
		this.firstName = firstName ;
	}

	/**
	 * @return the lastName
	 */
	public String getLastName ( )
	{
		return lastName ;
	}

	/**
	 * @param lastName
	 *            the lastName to set
	 */
	public void setLastName ( String lastName )
	{
		this.lastName = lastName ;
	}

	/**
	 * @return the sport
	 */
	public String getSport ( )
	{
		return sport ;
	}

	/**
	 * @param sport
	 *            the sport to set
	 */
	public void setSport ( String sport )
	{
		this.sport = sport ;
	}

	/**
	 * @return the gender
	 */
	public String getGender ( )
	{
		return gender ;
	}

	/**
	 * @param gender
	 *            the gender to set
	 */
	public void setGender ( String gender )
	{
		this.gender = gender ;
	}

	/**
	 * @return the residency
	 */
	public String getResidency ( )
	{
		return residency ;
	}

	/**
	 * @param residency
	 *            the residency to set
	 */
	public void setResidency ( String residency )
	{
		this.residency = residency ;
	}

	/**
	 * @return the over21
	 */
	public String getOver21 ( )
	{
		return over21 ;
	}

	/**
	 * @param over21
	 *            the over21 to set
	 */
	public void setOver21 ( String over21 )
	{
		this.over21 = over21 ;
	}

	/**
	 * @return the carModels
	 */
	public String getCarModels ( )
	{
		return carModels ;
	}

	/**
	 * @param carModels
	 *            the carModels to set
	 */
	public void setCarModels ( String carModels )
	{
		this.carModels = carModels ;
	}

}
